package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.PromotionProduct;
import com.nbsaas.boot.marketing.api.domain.simple.PromotionProductSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 活动商品-列表对象转换器
*/

public class PromotionProductSimpleConvert implements Converter<PromotionProductSimple, PromotionProduct> {




@Override
public PromotionProductSimple convert(PromotionProduct source) {
    PromotionProductSimple result = new PromotionProductSimple();

                result.setSoldCount(source.getSoldCount());
                result.setProductId(source.getProductId());
                result.setOriginalPrice(source.getOriginalPrice());
                result.setPromotionPrice(source.getPromotionPrice());
                result.setStockLimit(source.getStockLimit());
                result.setDiscountType(source.getDiscountType());
                result.setId(source.getId());
                result.setDiscountValue(source.getDiscountValue());
                result.setAddDate(source.getAddDate());
                result.setPromotionId(source.getPromotionId());
                result.setSkuId(source.getSkuId());
                result.setLastDate(source.getLastDate());


    return result;
}

}